package com.gzhu.knowledgeAdmin.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.gzhu.knowledgeAdmin.common.valid.AddGroup;
import com.gzhu.knowledgeAdmin.common.valid.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.*;
/**
 * 条件表
 * 
 * @author yangminggui
 * @email giaogiao@gmail.com
 * @date 2024-01-25 23:06:27
 */
@Data
@TableName("`condition`")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="condition对象", description="条件表")
public class Condition implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	@NotNull(message = "修改必须指定自增id",groups = {UpdateGroup.class})
	@Null(message = "新增不能指定自增id",groups = {AddGroup.class})
	@ApiModelProperty(value = "自增id")
	private Integer id;

	@NotBlank(groups = {AddGroup.class})
    @TableField(value = "content")
	@ApiModelProperty(value = "算子间的逻辑关系")
	private String content;

}
